<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>VDS Manager</title>
  </head>
  <body>
  	<div align="center" style="font-family: 黑体">
  		<s:form action="addUser" namespace="/management/system">
  			<h3><s:text name="addUser.title" /></h3>
  			<s:textfield name="userName" label="%{getText('addUser.userName')}" cssStyle="width: 165px" />
	  		<s:password name="password" label="%{getText('addUser.password')}" cssStyle="width: 165px" />
	  		<s:password name="repeatPassword" label="%{getText('addUser.repeatPassword')}" cssStyle="width: 165px" />
	  		<s:checkboxlist name="roleIds" label="%{getText('addUser.roles')}" labelposition="left" list="#{'1':'管理员', '2':'用户'}" />
	  		<s:submit value="%{getText('addUser.submit')}" />
	  	</s:form>
  	</div>
  </body>
</html>
